﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="ClientBookingNoteLook.aspx.cs" Inherits="BookingNote_ClientBookingNoteLook" Title="托运单详细信息" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="myDiv" runat="server" style="position: absolute; z-index: 99; background: #DDDDDD;
                top: 90px; display: none; width: 765px; height: 750px;">
            </div>
            <div id="divError" runat="server" style="position: absolute; z-index: 100; background: #ffffff;
                top: 130px; display: none; width: 600px; padding: 5px; height: 690px; border: 1px solid #000000;
                margin-left: 80px;">
                <table width="100%" align="center">
                    <tr>
                        <td>
                            <div class="title">
                                <asp:Label ID="Label2" runat="server" Text="托运单详细信息"></asp:Label></div>
                            <table class="add_table" cellspacing="1" cellpadding="3" align="center">
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblConfirmNO" runat="server" Text="确认单号："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtConfirmNo" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblVendor" runat="server" Text="工厂："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlVendor" runat="server" Enabled="false">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblWhouse" runat="server" Text="仓库："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlWhouse" runat="server" Enabled="false">
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblPlace" runat="server" Text="收货地点："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlPlace" runat="server" Enabled="false">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblSONO" runat="server" Text="落货纸号："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtSONO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblFCLLCL" runat="server" Text="整框/散货："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtFCLLCL" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblHKPRC" runat="server" Text="香港/国内："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtHKPRC" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblJobDate" runat="server" Text="收货日："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" Width="90%" ID="txtJobDate"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblDeliveryDate" runat="server" Text="交货日："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtDeliveryDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblItemNO" runat="server" Text="货号："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtItemNO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblPCS" runat="server" Text="件数："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtPCS" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblCTN" runat="server" Text="箱数："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCTN" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblGrossWT" runat="server" Text="毛重："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtGrossWT" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblVOL" runat="server" Text="体积 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtVOL" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblContainerNO" runat="server" Text="柜号 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtContainerNO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblSealNO" runat="server" Text="封条号 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtSealNO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblVVD" runat="server" Text="航班及航次 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtVVD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblPNNO" runat="server" Text="收货单号 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtPNNO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblBuyerPONO" runat="server" Text="托運人落單號碼 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtBuyerPONO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblPCNOD" runat="server" Text="装货单号 ：" Width="90%"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtPCNOD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblCargoReadyDate" runat="server" Text="可提货日 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCargoReadyDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblTruckCO" runat="server" Text="运输公司 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtTruckCO" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblBillDateD" runat="server" Text="开单日期 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtBillDateD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblLastModDateD" runat="server" Text="修改时间 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtLastModDateD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblLastModUserD" runat="server" Text="修改人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtLastModUserD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblCreatedDateD" runat="server" Text="新增时间 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCreatedDateD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblCreatedUserD" runat="server" Text="新增人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCreatedUserD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblStatusD" runat="server" Text="状态 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtStatusD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblBookingDate" runat="server" Text="booking时间 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtBookingDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblBookingUser" runat="server" Text="下booking人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtBookingUser" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblArrangeDate" runat="server" Text="分配日期 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtArrangeDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblArrangeUser" runat="server" Text="分配人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtArrangeUser" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblCBDate" runat="server" Text="确认booking日期 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCBDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblCBUser" runat="server" Text="确认人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCBUser" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblPrintDate" runat="server" Text="开暂收证明日期 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtPrintDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblPrintUser" runat="server" Text="开暂收证明人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtPrintUser" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblReceiptDate" runat="server" Text="ReceiptDate ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtReceiptDate" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblReceiptUser" runat="server" Text="尾纸确认人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtReceiptUser" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblCancelDateD" runat="server" Text="取消booking日期 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCancelDateD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblCancelUserD" runat="server" Text="取消人 ："></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="txtCancelUserD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblRemarkD" runat="server" Text="备注 ："></asp:Label>
                                    </td>
                                    <td colspan="3">
                                        <asp:Label ID="txtRemarkD" runat="server" Width="90%"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="btnClose" CssClass="btn" runat="server" Text="返回" OnClick="btnClose_Click" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="title">
                &nbsp;<asp:Label ID="lblPageType" runat="server" Text="查看托运单"></asp:Label></div>
            <table class="add_table" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td align="right">
                        <asp:Label ID="lblPoNO" runat="server" Text="单号："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtPoNO" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblShipper" runat="server" Text="托运人："></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlShipper" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCustomer" runat="server" Text="客户客人："></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCustomer" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblShipperLMID" runat="server" Text="联络人："></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlShipperLM" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblInvoiceNO" runat="server" Text="发票号："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtInvoiceNO" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblMarket" runat="server" Text="市场："></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMarket" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCarrierForwar" runat="server" Text="船公司/货代："></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCarrierForwar" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblDestination" runat="server" Text="目的地："></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlDestination" runat="server" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblVV" runat="server" Text="船名及航次："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txVV" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblWinStart" runat="server" Text="开仓日期："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtWinStart" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblWinClose" runat="server" Text="截数日期："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtWinClose" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblWinLastClose" runat="server" Text="最后截数日："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtWinLastClose" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblSICutOFFDate" runat="server" Text="最后海关预报日 ："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtSICutOFFDate" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblBillDate" runat="server" Text="开单日期 ："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtBillDate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCPO" runat="server" Text="客户取购单号 ："></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCPO" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblPcNO" runat="server" Text="装货单"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtPcNO" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblRemark" runat="server" Text="备注"></asp:Label>
                    </td>
                    <td colspan="3">
                        <asp:Label ID="txtRemark" runat="server" Width="90%"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCreatedDate" runat="server" Text="入单时间"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCreatedDate" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblCreatedUser" runat="server" Text="入单人"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCreatedUser" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblLastModDate" runat="server" Text="修改时间"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtLastModDate" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblLastModUser" runat="server" Text="修改人"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtLastModUser" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblStatus" runat="server" Text="状态"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtStatus" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:Label ID="lblCheckedDate" runat="server" Text="审核时间"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCheckedDate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCancelDate" runat="server" Text="取消时间"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="txtCancelDate" runat="server"></asp:Label>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
            <div class="title">
                &nbsp;<asp:Label ID="lblTitleDetail" runat="server" Text="托运单详细信息列表"></asp:Label></div>
            <div class="list_title">
                <div class="autoleft">
                    当前共有<asp:Label ID="lblTotal" runat="server"></asp:Label>详细托运单</div>
                <div class="autoright">
                    每页显示：
                    <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Text="10" Value="10"></asp:ListItem>
                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div style="overflow: auto; width: 100%; height: 400px; padding: 1px;">
                <asp:GridView ID="gvBookNoteDetailList" runat="server" AllowPaging="True" PageSize="5"
                    EmptyDataText="托运单详细为空" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="gvBookNoteDetailList_PageIndexChanging"
                     CssClass="tblGridView" 
                    onsorting="gvBookNoteDetailList_Sorting" AllowSorting="true">
                    <PagerTemplate>
                        <table style="width: 100%" class="tblPager">
                            <tr>
                                <td>
                                    页次:&nbsp;<asp:Label ID="Label1" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'></asp:Label>/<asp:Label
                                        ID="Label2" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页&nbsp;
                                    总计:&nbsp;<asp:Label ID="Label3" runat="server" Text="<%# ((System.Data.DataView)gvBookNoteDetailList.DataSource).Count %>"></asp:Label>
                                </td>
                                <td align="right">
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="首页"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="前页"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                        Text="后页"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                        Text="尾页"></asp:LinkButton>&nbsp;
                                    <asp:Label ID="lblTurnOn" runat="server" Text="转第"></asp:Label><asp:TextBox ID="txtPages"
                                        runat="server" Width="35px"></asp:TextBox>
                                    <asp:Label ID="lblPages2" runat="server" Text="页"></asp:Label>
                                    <asp:LinkButton ID="lbtnGo" runat="server" Text="提交" OnClick="lbtnGo_Click"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </PagerTemplate>
                    <Columns>
                        <asp:TemplateField HeaderText="确认单号" SortExpression="ConfirmNO">
                            <ItemTemplate>
                                <asp:Label ID="lblConfirmNO2" runat="server" Text=' <%#  Eval("ConfirmNO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="工厂" SortExpression="VendorID">
                            <ItemTemplate>
                                <asp:Label ID="lblVendorID" runat="server" Text=' <%# GetClient(Eval("VendorID")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="仓库" SortExpression="WhouseID">
                            <ItemTemplate>
                                <asp:Label ID="lblWhouseID" runat="server" Text=' <%#  GetClient(Eval("WhouseID")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收货地点" SortExpression="PlaceID">
                            <ItemTemplate>
                                <asp:Label ID="lblPlaceID" runat="server" Text=' <%# GetPlace( Eval("PlaceID")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="落货纸号" SortExpression="SONO">
                            <ItemTemplate>
                                <asp:Label ID="lblSONO" runat="server" Text=' <%#  Eval("SONO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="整框/散货" SortExpression="FCLLCL">
                            <ItemTemplate>
                                <asp:Label ID="lblFCLLCL" runat="server" Text=' <%#  Eval("FCLLCL") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="香港/国内" SortExpression="HKPRC">
                            <ItemTemplate>
                                <asp:Label ID="lblHKPRC" runat="server" Text=' <%#  Eval("HKPRC") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收货日" SortExpression="JobDate">
                            <ItemTemplate>
                                <asp:Label ID="lblJobDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd}",Eval("JobDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="交货日" SortExpression="DeliveryDate">
                            <ItemTemplate>
                                <asp:Label ID="lblDeliveryDate" runat="server" Text=' <%#  String.Format("{0:yyyy-MM-dd}",Eval("DeliveryDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="货号" SortExpression="ItemNO">
                            <ItemTemplate>
                                <asp:Label ID="lblItemNO" runat="server" Text=' <%#  Eval("ItemNO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="件数" SortExpression="PCS">
                            <ItemTemplate>
                                <asp:Label ID="lblPCS" runat="server" Text=' <%#  Eval("PCS") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="箱数" SortExpression="CTN">
                            <ItemTemplate>
                                <asp:Label ID="lblCTN" runat="server" Text=' <%#  Eval("CTN") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="毛重" SortExpression="PCGrossWTS">
                            <ItemTemplate>
                                <asp:Label ID="lblGrossWT" runat="server" Text=' <%#  Eval("GrossWT") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="体积" SortExpression="VOL">
                            <ItemTemplate>
                                <asp:Label ID="lblVOL" runat="server" Text=' <%#  Eval("VOL") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="柜号" SortExpression="ContainerNO">
                            <ItemTemplate>
                                <asp:Label ID="lblContainerNO" runat="server" Text=' <%#  Eval("ContainerNO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="封条号" SortExpression="SealNO">
                            <ItemTemplate>
                                <asp:Label ID="lblSealNO" runat="server" Text=' <%#  Eval("SealNO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="船名及航次" SortExpression="VV">
                            <ItemTemplate>
                                <asp:Label ID="lblVV" runat="server" Text=' <%#  Eval("VV") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开单日期" SortExpression="BillDate">
                            <ItemTemplate>
                                <asp:Label ID="lblBillDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd}", Eval("BillDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="上次修改时间" SortExpression="LastModDate">
                            <ItemTemplate>
                                <asp:Label ID="lblLastModDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("LastModDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="上次修改人" SortExpression="LastModUser">
                            <ItemTemplate>
                                <asp:Label ID="lblLastModUser" runat="server" Text=' <%# GetUserName( Eval("LastModUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="新增时间" SortExpression="CreatedDate">
                            <ItemTemplate>
                                <asp:Label ID="lblCreatedDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("CreatedDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="新增人" SortExpression="CreatedUser">
                            <ItemTemplate>
                                <asp:Label ID="lblCreatedUser" runat="server" Text=' <%# GetUserName( Eval("CreatedUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="状态" SortExpression="Status">
                            <ItemTemplate>
                                <asp:Label ID="lblStatus" runat="server" Text=' <%# HK2009.Common.StringUtil.GetBNDStatus(Eval("Status")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="工厂booking日期" SortExpression="BookingDate">
                            <ItemTemplate>
                                <asp:Label ID="lblBookingDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("BookingDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Booking人" SortExpression="BookingUser">
                            <ItemTemplate>
                                <asp:Label ID="lblBookingUser" runat="server" Text=' <%# GetUserName( Eval("BookingUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="分配日期" SortExpression="ArrangeDate">
                            <ItemTemplate>
                                <asp:Label ID="lblArrangeDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("ArrangeDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="分配操作人" SortExpression="ArrangeUser">
                            <ItemTemplate>
                                <asp:Label ID="lblArrangeUser" runat="server" Text=' <%#  GetUserName(Eval("ArrangeUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="公司确认Job日期" SortExpression="CBDate">
                            <ItemTemplate>
                                <asp:Label ID="lblCBDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("CBDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="确认人" SortExpression="CBUser">
                            <ItemTemplate>
                                <asp:Label ID="lblCBUser" runat="server" Text=' <%#  GetUserName(Eval("CBUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输队确认Job日期" SortExpression="CJDate">
                            <ItemTemplate>
                                <asp:Label ID="lblCJDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("CJDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输队确认" SortExpression="CJUser">
                            <ItemTemplate>
                                <asp:Label ID="lblCJUser" runat="server" Text=' <%#  GetUserName(Eval("CJUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开暂收证明日期" SortExpression="PrintDate">
                            <ItemTemplate>
                                <asp:Label ID="lblPrintDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("PrintDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="开暂收证明人" SortExpression="PrintUser">
                            <ItemTemplate>
                                <asp:Label ID="lblPrintUser" runat="server" Text=' <%# GetUserName( Eval("PrintUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="尾纸确认日期" SortExpression="ReceiptDate">
                            <ItemTemplate>
                                <asp:Label ID="lblReceiptDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("ReceiptDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="尾纸确认人" SortExpression="ReceiptUser">
                            <ItemTemplate>
                                <asp:Label ID="lblReceiptUser" runat="server" Text=' <%#  GetUserName(Eval("ReceiptUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消Booking日期" SortExpression="CancelDate">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelDate" runat="server" Text=' <%#  String.Format("{0:yyyy-MM-dd HH:mm:ss}",Eval("CancelDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="取消人" SortExpression="CancelUser">
                            <ItemTemplate>
                                <asp:Label ID="lblCancelUser" runat="server" Text=' <%#  GetUserName(Eval("CancelUser")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收货单号" SortExpression="PNNO">
                            <ItemTemplate>
                                <asp:Label ID="lblPNNO" runat="server" Text=' <%#  Eval("PNNO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="托運人客戶落單號碼" SortExpression="BuyerPONO">
                            <ItemTemplate>
                                <asp:Label ID="lblBuyerPONO" runat="server" Text=' <%#  Eval("BuyerPONO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="装货单号" SortExpression="PCNO">
                            <ItemTemplate>
                                <asp:Label ID="lblPCNO" runat="server" Text=' <%#  Eval("PCNO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="可提货日" SortExpression="CargoReadyDate">
                            <ItemTemplate>
                                <asp:Label ID="lblCargoReadyDate" runat="server" Text=' <%# String.Format("{0:yyyy-MM-dd}", Eval("CargoReadyDate")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="运输公司" SortExpression="TruckCO">
                            <ItemTemplate>
                                <asp:Label ID="lblTruckCO" runat="server" Text=' <%#  Eval("TruckCO") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="备注" SortExpression="Remark">
                            <ItemTemplate>
                                <asp:Label ID="lblRemark" runat="server" Text=' <%#  Eval("Remark") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%-- <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnUpdate" runat="server" Text="详细" CommandArgument='<%# Eval("PKID")%>'
                                CommandName='detail'></asp:LinkButton>                        
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" />
                    <RowStyle HorizontalAlign="Center" />
                </asp:GridView>
            </div>
        </ContentTemplate>
        
    </asp:UpdatePanel>
    <div align="center">
      <%--  <asp:Button ID="btnCheck" runat="server" Text="审核" CssClass="btn" OnClick="btnCheck_Click" />&nbsp;
        <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="btn" OnClick="btnCancel_Click" />&nbsp;--%><asp:Button
            ID="btnBack" runat="server" Text="返回" CssClass="btn" OnClick="btnBack_Click" />
    </div>
    <input type="hidden" id="hidUpdateNum" runat="server" />
</asp:Content>
